import request from '@/utils/request'

// 新增
export function add(data) {
  return request({
    url: '/sys/navy/user/add',
    method: 'post',
    data: data
  })
}

// 修改名称
export function editName(data) {
  return request({
    url: '/sys/navy/user/add',
    method: 'post',
    data: data
  })
}

// 修改头像
export function editAvatar(data) {
  return request({
    url: '/sys/navy/user/add',
    method: 'post',
    data: data
  })
}

// 开店
export function openShop(data) {
  return request({
    url: '/sys/navy/user/openShops',
    method: 'post',
    data: data
  })
}
// 主播
export function openAnchor(data) {
  return request({
    url: '/sys/navy/user/openAnchor',
    method: 'post',
    data: data
  })
}
// 修改余额
export function editBalance(data) {
  return request({
    url: '/sys/navy/user/editBalance',
    method: 'post',
    data: data
  })
}
// 金币
export function editGold(data) {
  return request({
    url: '/sys/navy/user/editGold',
    method: 'post',
    data: data
  })
}
// 水军店铺列表
export function shopList(data) {
  return request({
    url: '/sys/navy/shop/list',
    method: 'post',
    data: data
  })
}
//水军修改用户信息
export function shopModify(data) {
  return request({
    url: '/sys/navy/user/edit',
    method: 'post',
    data: data
  })
}

//水军店铺商品添加
export function addProduct(data) {
  return request({
    url: '/sys/navy/shop/addGoods',
    method: 'post',
    data: data
  })
}
// 水军店铺修改信息
export function shioEdit(data) {
  return request({
    url: '/sys/navy/shop/edit',
    method: 'post',
    data: data
  })
}
// 水军主播列表
export function anchorList(data) {
  return request({
    url: '/sys/navy/anchor/list',
    method: 'post',
    data: data
  })
}

//修改地址信息
export function addressEdit(data) {
  return request({
    url: '/sys/user/address/edit',
    method: 'put',
    data: data
  })
}
